.class public Lcom/instagram/android/util/u;
.super Ljava/lang/Object;
.source "DialogUtil.java"


# direct methods
.method public static a(Landroid/content/Context;)V
    .locals 5
    .parameter

    .prologue
    .line 16
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/facebook/ba;->x_problems:I

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    sget v4, Lcom/facebook/ba;->instagram:I

    invoke-virtual {p0, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {p0, v1, v2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->dismiss:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 21
    return-void
.end method

.method public static a(Landroid/support/v4/app/r;)V
    .locals 2
    .parameter

    .prologue
    .line 42
    invoke-static {}, Lcom/instagram/android/fragment/ey;->X()Lcom/instagram/android/fragment/ey;

    move-result-object v0

    .line 43
    const-string v1, "progressDialog"

    invoke-virtual {v0, p0, v1}, Lcom/instagram/android/fragment/ey;->a(Landroid/support/v4/app/r;Ljava/lang/String;)V

    .line 44
    return-void
.end method

.method public static b(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 24
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/facebook/ba;->error:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->could_not_submit_flag:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->dismiss:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 30
    return-void
.end method

.method public static b(Landroid/support/v4/app/r;)V
    .locals 1
    .parameter

    .prologue
    .line 47
    const-string v0, "progressDialog"

    invoke-virtual {p0, v0}, Landroid/support/v4/app/r;->a(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/f;

    .line 49
    if-eqz v0, :cond_0

    .line 50
    invoke-virtual {v0}, Landroid/support/v4/app/f;->a()V

    .line 52
    :cond_0
    return-void
.end method

.method public static c(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 33
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/facebook/ba;->error:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->request_error:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->dismiss:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 39
    return-void
.end method
